<template>
    <div id="data">
        {{ data }}
    </div> 
  </template>
  <!-- <script src="https://unpkg.com/axios/dist/axios.min.js"></script> -->
  <script lang="ts">
  import { onBeforeMount, ref } from 'vue';
  import axios from "@/utils/http";
  export default {
    name: 'RouterTest',
    components: {
    },
    setup(){
      const data:any=ref("")
        
      onBeforeMount(()=>{
        axios({
        url:"/SystemInspection/fundInspections",
        method:"get",
        headers:{
            "Content-Type":"application/json"
        },
        data:{
        }
    }).then((res:any)=>{
        // console.log("1",res)
        // console.log("2",res.data.data)
        // console.log("3",res.data.msg)
        data.value=JSON.parse(res.data.data).data
        console.log(data.value[0].id);
        
    })
        
      })
      return {
        data
      }
    }
  };
  </script>
  <style>
  
  </style>